package com.xhu.collegestudentrentalsystem.util.constant;

/**
 * @author zhu huilin
 * @date 2023/3/30 13:18
 *  实体属性需要用到的字符串常量
 */
public class EntityProperty {

    /**
     * 各个实体类中的id字段
     */
    public final static String ID = "id";

    /**
     * 各个实体类中的创建时间字段
     */
    public final static String CREATE_TIME = "create_time";

    /**
     * 各个实体类中的状态值字段
     */
    public final static String STATUS = "status";

    /**
     * 用户实体类中需要用到的字段/属性名
     */
    public static interface user{
        public String USERNAME = "username";
        public String USER_EMAIL = "email";
        public String USER_ROLE = "role";
    }

    /**
     * 用户角色值
     */
    public static interface userRole{
        public String OWNER = "owner";
        public String CUSTOMER = "customer";
        public String ADMIN = "manager";
    }

    /**
     * 房屋实体类中所需要用到的字段/属性名
     */
    public static interface house{
        public String CERTIFICATE_NO = "certificate_no";
        public String HOUSE_STATUS = "status";
        public String USER_ID = "user_id";
        public String CITY = "city";
        public String ADDRESS = "address";
        public String RENT_TYPE = "rent_type";
        public String MONTH_RENT = "month_rent";
        public String AREA = "area";
    }

    /**
     * 用户反馈表中所需要用到的字段/属性名
     */
    public static interface feedback{
        public String USER_ID = "user_id";
        public String ORDER_ID = "order_id";
    }

    /**
     * 订单表中所需要用到的字段/属性名
     */
    public static interface order{
        public String HOUSE_ID = "house_id";
        public String CUSTOMER_USER_ID = "customer_user_id";
        public String OWNER_USER_ID = "owner_user_id";
    }

    /**
     * 收藏表中所需要用到的字段/属性名
     */
    public static interface mark{
        public String USER_ID = "user_id";
        public String HOUSE_ID = "house_id";
    }

    /**
     * 帖子表中需要用到的字段/属性名
     */
    public static interface post{
        public String USER_ID = "user_id";
        public String POST_STATUS = "post_status";
        public String POST_TYPE = "post_type";
        public String TITLE = "title";
        public String CONTENT = "content";
    }

    /**
     * 评论回复表中需要用到的字段/属性名
     */
    public static interface comment{
        public String USER_ID = "user_id";
        public String TARGET_ID = "target_id";
        public String ENTITY_TYPE = "entity_type";
        public String ENTITY_ID = "entity_id";
    }


}
